export default function fetchDevStatisticsData(statisticalType: string) {
  if (statisticalType === 'deviceType') {
    return [
      {
        type: '发卡机',
        value: 66,
      },
      {
        type: '回单机',
        value: 35,
      },
      {
        type: '填单机',
        value: 35,
      },
      {
        type: '智能柜台',
        value: 3,
      },
      {
        type: '一体机',
        value: 21,
      },
      {
        type: 'ATM/CRS',
        value: 105,
      },
    ];
  } else if (statisticalType === 'manufacturerType') {
    return [
      {
        type: '厂商1',
        value: 66,
      },
      {
        type: '厂商2',
        value: 35 + 21,
      },
      {
        type: '厂商3',
        value: 105 - 65,
      },
      {
        type: '厂商4',
        value: 3 + 35,
      },
      {
        type: '厂商5',
        value: 65,
      },
    ];
  } else if (statisticalType === 'installType') {
    return [
      {
        type: '在行',
        value: 206,
      },
      {
        type: '离行',
        value: 59,
      },
    ];
  } else {
    return [
      {
        type: '非信创发卡机机型1',
        value: (66 / 6) * 1,
      },
      {
        type: '非信创发卡机机型2',
        value: (66 / 6) * 2,
      },
      {
        type: '非信创发卡机机型3',
        value: (66 / 6) * 2,
      },
      {
        type: '信创发卡机机型1',
        value: (66 / 6) * 1,
      },
      {
        type: '回单机机型1',
        value: (35 / 5) * 1,
      },
      {
        type: '回单机机型2',
        value: (35 / 5) * 2,
      },
      {
        type: '回单机机型3',
        value: (35 / 5) * 2,
      },
      {
        type: '填单机机型1',
        value: (35 / 5) * 1,
      },
      {
        type: '填单机机型2',
        value: (35 / 5) * 1,
      },
      {
        type: '填单机机型3',
        value: (35 / 5) * 3,
      },
      {
        type: '智能柜台机型1',
        value: 3,
      },
      {
        type: '信创一体机机型1',
        value: (18 / 3) * 1,
      },
      {
        type: '信创一体机机型2',
        value: (18 / 3) * 2,
      },
      {
        type: '非信创一体机机型1',
        value: 3,
      },
      {
        type: 'ATM机型1',
        value: (105 / 7) * 1,
      },
      {
        type: 'CRS机型1',
        value: (105 / 7) * 2,
      },
      {
        type: 'CRS机型2',
        value: (105 / 7) * 2,
      },
      {
        type: 'CRS机型3',
        value: (105 / 7) * 1,
      },
      {
        type: 'CRS机型4',
        value: (105 / 7) * 1,
      },
    ];
  }
}
